<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('user_info', function (Blueprint $table) {
            $table->increments('id');
            $table->string('user_id') -> comment('两表联查的id');
            $table->string('hd_pic') -> comment('用户头像,存放路径');
            $table->string('signature')-> nullable() -> comment('个性签名');
            $table->timestamps();
         });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_info');
    }
}
